package com.zhang.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zh
 * @create 2022-03-09 11:45
 */
@Data
public class Pet {
    private Long id;
    private String name;
    private String saleprice;
    private String costprice;
    private String resources;
    private Integer state;
    private PetType type;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date createtime;
    private Shop shop;
    private User user;
    private SearchMsg searchMsg;
    private PetDetail petDetail;


}
